package com.jddup.test.pojo.postgresql;

import com.jddup.common.annotations.ColumnDes;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * Created by ZZB on 2017/12/10.
 */
@Table(name = "test_entity_numeric")
public class testEntityNumeric {
    @Id
    @Column(name = "id")
    @ColumnDes(maxLength = 36)
    private String id;
    @Column(name = "test_integer")
    private Integer testInteger;
    @Column(name = "test_int")
    private Integer testInt;
    @Column(name = "test_smallint")
    @ColumnDes(maximum = "32767")
    private Integer testSmallint;
    @Column(name = "test_bigint")
    private Long testBigint;
    @Column(name = "test_decimal")
    @ColumnDes(precision = 20,scale = 2)
    private BigDecimal testDecimal;
    @Column(name = "test_numeric")
    @ColumnDes(precision = 20,scale = 2)
    private BigDecimal testNumeric;
    @Column(name = "test_smallserial")
    @ColumnDes(maximum = "32767")
    private Integer testSmallserial;
    @Column(name = "test_serial")
    private Integer testSerial;
    @Column(name = "test_bigserial")
    private Long testBigserial;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getTestInteger() {
        return testInteger;
    }

    public void setTestInteger(Integer testInteger) {
        this.testInteger = testInteger;
    }

    public Integer getTestInt() {
        return testInt;
    }

    public void setTestInt(Integer testInt) {
        this.testInt = testInt;
    }

    public Integer getTestSmallint() {
        return testSmallint;
    }

    public void setTestSmallint(Integer testSmallint) {
        this.testSmallint = testSmallint;
    }

    public Long getTestBigint() {
        return testBigint;
    }

    public void setTestBigint(Long testBigint) {
        this.testBigint = testBigint;
    }

    public BigDecimal getTestDecimal() {
        return testDecimal;
    }

    public void setTestDecimal(BigDecimal testDecimal) {
        this.testDecimal = testDecimal;
    }

    public BigDecimal getTestNumeric() {
        return testNumeric;
    }

    public void setTestNumeric(BigDecimal testNumeric) {
        this.testNumeric = testNumeric;
    }

    public Integer getTestSmallserial() {
        return testSmallserial;
    }

    public void setTestSmallserial(Integer testSmallserial) {
        this.testSmallserial = testSmallserial;
    }

    public Integer getTestSerial() {
        return testSerial;
    }

    public void setTestSerial(Integer testSerial) {
        this.testSerial = testSerial;
    }

    public Long getTestBigserial() {
        return testBigserial;
    }

    public void setTestBigserial(Long testBigserial) {
        this.testBigserial = testBigserial;
    }
}
